export const QuestionConfigBean = {
  id: '',
  year: '',
  bt: '',
  publish: 0,
  starDate: '',
  endDate: '',
  entryDate: [],
  mark: '您对[dept][question]的满意度，请打分！',
  questions: []
}

export const QuestionConfigSubBean = {
  id: '',
  org: { label: '', value: '' },
  orgId: '',
  orgName: '',
  fid: '',
  question: '',
  rowStatus: '',
  showOrder: ''
}

export const FORM_RULES = {
  bt: [{ required: true, message: '请输入标题', trigger: 'change' }],
  year: [{ required: true, message: '请选择调查年份', trigger: 'change' }],
  num: [{ pattern: /^[0-9]+[0-9]*$/, message: '请输入正整数', trigger: 'change' }],
  entryDate: [{ required: true, message: '请选择调查期限', trigger: 'change' }],
  orgId: [{ required: true, message: '请选择维护单位', trigger: 'change' }],
  question: [{ required: true, message: '请维护调查指标', trigger: 'change' }],
  showOrder: [
    { required: true, message: '请维护排序', trigger: 'change' },
    { pattern: /^[1-9]+[0-9]*$/, message: '请输入正整数', trigger: 'change' }
  ]
}
